Fix fumadocs-mdx validation: flatten nested pages in concepts meta.json#210
Merged
Fix fumadocs-mdx validation: flatten nested pages in concepts meta.json#210
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update specification references in project
Fix fumadocs-mdx validation: flatten nested pages in concepts meta.json
Jan 26, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a CI build failure by updating the fumadocs-mdx metadata structure in the concepts documentation. The nested "Protocol Namespaces" grouping structure was causing validation errors because fumadocs-mdx expects flat string arrays in the pages field, not nested objects.
Changes:
- Flattened the
pagesarray structure in both English and Chinese concept meta files - Removed the nested "Protocol Namespaces" grouping object
- Maintained all 11 protocol pages at the top level in the same sequential order
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| content/docs/concepts/meta.json | Flattened pages array from nested structure to flat list of protocol page references |
| content/docs/concepts/meta.cn.json | Flattened pages array from nested structure to flat list (Chinese version) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI build failing on
meta.jsonvalidation - fumadocs-mdx expects flat string arrays inpages, not nested objects.Changes
pagesarray in/content/docs/concepts/meta.jsonandmeta.cn.jsonpages[3]Before:
{ "pages": [ "manifesto", "architecture", { "title": "Protocol Namespaces", "pages": ["protocol-data", "protocol-driver", ...] }, "terminology" ] }After:
{ "pages": [ "manifesto", "architecture", "protocol-data", "protocol-driver", ..., "terminology" ] }Sidebar navigation will show protocol pages in sequence rather than nested under a group heading.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.